Repository navigation
Conversation
Contributor
There was a problem hiding this comment.
🟡 Changes recommended
An empty logo_open_graph value bypasses the fallback to the site logo, omitting both image meta tags and removing the default page’s previously configured Twitter image.
1 open issue
What changed in this PR
Updates default Open Graph and Twitter metadata to reflect the current TeSS space, so link previews show space-specific information.
Changes:
- Uses the current space’s title, image, and description, and limits the Twitter handle to the default site.
- Adds controller tests for default-site and space-specific metadata.
- Modernizes the partial-render syntax in the page head.
| File | Description |
|---|---|
test/controllers/static_controller_test.rb |
Adds metadata assertions for the default site and a space. |
test/config/test_tess.yml |
Sets a distinct Twitter handle for test assertions. |
app/views/layouts/_head.html.erb |
Modernizes the default metadata partial-render syntax. |
app/views/common/_default_og.html.erb |
Selects preview metadata based on the current space. |
Review effort: Balanced
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.

Summary of changes
Motivation and context
Link previews in chat apps wouldn't show the space's information.
Checklist